/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const userRouter = {
  path: '/user',
  component: Layout,
  redirect: '/user/user_info',
  name: '用户相关',
  meta: {title: '用户相关', icon: 'user', role: 'ADMIN'},
  children: [
    {
      path: '/user/user_info',
      name: '用户信息',
      component: () => import('@/views/user/user_info'),
      meta: {title: '用户信息', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/user/user_occupation',
      name: '用户职业',
      component: () => import('@/views/user/user_occupation'),
      meta: {title: '用户职业', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/user/user_setting',
      name: '用户设置',
      component: () => import('@/views/user/user_setting'),
      meta: {title: '用户设置', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/user/user_role',
      name: '用户角色',
      component: () => import('@/views/user/user_role'),
      meta: {title: '用户角色', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/user/user_book_section',
      name: '用户章节进度',
      component: () => import('@/views/user/user_book_section'),
      meta: {title: '用户章节进度', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/user/user_attention',
      name: '用户关注',
      component: () => import('@/views/user/user_attention'),
      meta: {title: '用户关注', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/user/user_vip_record',
      name: '用户权益记录',
      component: () => import('@/views/user/user_vip_record'),
      meta: {title: '用户权益记录', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/user/user_read_plan',
      name: '用户阅读计划',
      component: () => import('@/views/user/user_read_plan'),
      meta: {title: '用户阅读计划', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/user/user_book',
      name: '用户书屋',
      component: () => import('@/views/user/user_book'),
      meta: {title: '用户书屋', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/user/user_medal',
      name: '用户勋章',
      component: () => import('@/views/user/user_medal'),
      meta: {title: '用户勋章', icon: 'tree', role: 'ADMIN'},
    }
  ]
}

export default userRouter

